import numpy as np 

# 一维数组的切片与索引操作与Python列表的切片一样

a = np.arange(9)
print("a[3:7]:", a[3:7])
print("a[:7:2]:", a[:7:2])
print("a[::-]", a[::-1])